package cn.wolfcode.queryobject;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
    // 默认当前页数为第一页
    private int currentPage = 1;
    private int pageSize = 3;

    public int getBeginIndex(){
        return (currentPage - 1) * pageSize;
    }
}
